Skip to content

Simple ruff setup#2574

Merged
meren merged 1 commit intomerenlab:masterfrom
ulgens:simple-ruff
Apr 25, 2026
Merged

Simple ruff setup#2574
meren merged 1 commit intomerenlab:masterfrom
ulgens:simple-ruff

Conversation

@ulgens
Copy link
Copy Markdown
Contributor

@ulgens ulgens commented Apr 24, 2026

Built on https://github.com/j178/prek

The config I use as starting point for similar setups can be found here: https://github.com/ulgens/python-anything/blob/162a15b286ea85d7baf9195eeb0fc37f595d589d/.pre-commit-config.yaml

To keep the PR small, I added a single hook with no violations.

Depends on:

@meren
Copy link
Copy Markdown
Member

meren commented Apr 25, 2026

This is excellent, @ulgens. Thank you very much! I look forward to expanding the list of rules step by step.

Plus, now we have a pre-commit framework, perhaps we (myself and others who have been dealing with standardization issues) start thinking about expanding these checks with specific conventions of the codebase and AST-based controls. Happy tears.

@ulgens ulgens marked this pull request as ready for review April 25, 2026 12:01
@meren meren merged commit a0ae90a into merenlab:master Apr 25, 2026
1 check passed
@meren
Copy link
Copy Markdown
Member

meren commented Apr 25, 2026

(just realized that the ruff.toml that removed the # -*- coding: utf-8 -*- declarations as per UP009 was no longer a part of this PR -- I guess you will bring ruff in in a different way or am I missing something?)

@ulgens
Copy link
Copy Markdown
Contributor Author

ulgens commented Apr 25, 2026

@meren I was trying to rebase this after #2573 's merge and it seems I lost the commit. My bad, creating a new PR.

Here it is: #2577

meren added a commit that referenced this pull request Apr 25, 2026
After the changes made by @ulgens to add a linting workflow for
developers via git hooks and pre-commit rules (see #2574, #2577) there
are a few things each developer must do on their end. The new section
explains what's up to minimize confusion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants